﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <script src="~/lib/ueditor-1.4.3.3/ueditor.config.js"></script>
    <script src="~/lib/ueditor-1.4.3.3/ueditor.all.js"></script>
    <script src="~/lib/ueditor-1.4.3.3/ueditor.config.js"></script>
    <script src="~/lib/ueditor-1.4.3.3/ueditor.all.min.js"></script>
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>
<body>
    <header class="aui-bar aui-bar-nav aui-text-left header" id="header">
        <br />
        <h1>
            <a class="aui-btn aui-pull-right" tapmode onclick="openClub()">
                <i class="aui-iconfont aui-icon-image"></i>
            </a>
            照片上传
        </h1>
    </header>
    <div class="aui-list-item">

        <div class="aui-card-list">
            <div class="aui-card-list-header">
                <h3>使用说明：请上传格式为医生ID.jpg图片(如1001.jpg)，上传完成提示上传成功的照片会显示在文本框类，支持多种图片上传，上传完成即可离开本页面
                    <p>如果要替换照片，再次上传相应医生ID的照片即可(如1001.jpg)</p></h3>

            </div>
            <div class="aui-card-list-header">
                <h3>技术使用:百度UEditor</h3>
            </div>
        </div> 
    </div>

    <div class="aui-list-item">
        <section class="aui-content-padded">
            <div class="aui-card-list">
                <div class="aui-card-list-header">

                    <div class="row">
                        <div class="col-md-12">
                            <script id="container" name="content" type="text/plain">请点击上方的图片按钮上传图片，上传成功的图片会显示在这里,上传完成即可离开本页面
                            </script>
                        </div>
                    </div>
                    <div class="aui-card-list-content-padded">
                        @section Scripts
                            {
                            <script type="text/javascript">
                                var ue = UE.getEditor('container', {
                                });
                            </script>
                        }

                    </div>


                </div>
            </div>
        </section>
    </div>  <div class="aui-list-item">

    <div class="aui-card-list">
            <a href="/Admin/Index"><p><div class="aui-btn aui-btn-info aui-btn-block aui-btn-outlined">返回主界面</div></p></a>
        </div></div>
</body>
</html>


<script type="text/javascript" src="~/script/aui-dialog.js"></script>
<script type="text/javascript" src="~/script/aui-toast.js"></script>
<script type="text/javascript">
    var dialog = new auiDialog({})
    var toast = new auiToast();

    function showDefault(type) {
        switch (type) {
            case "success":
                toast.success({
                    title: "提交成功",
                    duration: 2000
                });
                break;
            case "fail":
                toast.fail({
                    title: "提交失败",
                    duration: 2000
                });
                break;
            case "custom":
                toast.custom({
                    title: "提交成功",
                    html: '<i class="aui-iconfont aui-icon-laud"></i>',
                    duration: 2000
                });
                break;
            case "loading":
                toast.loading({
                    title: "加载中",
                    duration: 2000
                }, function (ret) {
                    console.log(ret);
                    setTimeout(function () {
                        toast.hide();
                    }, 3000)
                });
                break;
            default:
                // statements_def
                break;
        }
    }

</script>
<script type="text/javascript" src="~/script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
        api.setStatusBarStyle({
            style: 'light'
        });
        api.parseTapmode();
        var header = $api.byId('header');
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        var header_h = $api.offset($api.byId('header')).h;
        api.openFrame({
            name: 'index_frm',
            url: '~/html/index_frm.html',
            bounces: true,
            rect: {
                x: 0,
                y: header_h,
                w: 'auto',
                h: 'auto'
            }
        })
    };
    function openClub() {
        var delay = 0;
        if (api.systemType != 'ios') {
            delay = 300;
        }
        api.openWin({
            name: 'club_win',
            url: '~/html/club_win.html',
            bounces: false,
            delay: delay,
            slidBackEnabled: true,
            vScrollBarEnabled: false,
            progress: {
                type: "page"
            }
        });
    }
    function closeWin() {
        api.closeWin({
        });
    }
</script>
